package com.jhd.fuzhou.service;


import com.jhd.fuzhou.vo.JsonForResult;

import java.util.Map;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;
import retrofit2.http.QueryMap;

public interface LoginService {
    @FormUrlEncoded
    //登录的接口
    @POST("auth/oauth/token")
    Call<JsonForResult> getAuthInfo(@FieldMap Map<String, String> params);
    //获取图片验证码
    @GET("uc/register/getImage")
    Call<JsonForResult> getImage();
    //验证图片验证码，传code，uuid
    @GET("uc/register/verificationCode")
    Call<JsonForResult> verificationCode(@QueryMap Map<String, String> params);
    //获取短信验证码，mobileNo=手机号&type=validate
    @GET("uc/register/sendValidCode")
    Call<JsonForResult> sendValidCode(@QueryMap Map<String, String> params);
    //校验短信验证码是否正确mobileNo， validCode
    @GET("uc/register/validCode")
    Call<JsonForResult> validCode(@QueryMap Map<String, String> params);
    /*保存注册信息*/
    @POST("uc/register/saveRegisterInfo")
    Call<JsonForResult> saveRegisterInfo( @Body Object requestBody);
    /*获取用户的信息*/
    @GET("uc/register/getSysUserList")
    Call<JsonForResult> getSysUserList(@QueryMap Map<String, String> params);
    //查询人员信息
    @GET("uc/register/getPersonInfo")
    Call<JsonForResult> getPersonInfo(@Header("Authorization") String token, @QueryMap Map<String, String> params);
    //获取监督部门列表
    @GET("uc/orgDeptManage/getOrgSelector")
    Call<JsonForResult> getOrgSelector(@Header("Authorization") String token);
    //获取监督部门列表，传orgId
    @GET("uc/orgDeptManage/getDeptTree")
    Call<JsonForResult> getDeptTree(@Header("Authorization") String token, @QueryMap Map<String, String> params);
    //获取监督部门列表，传deptId,pageIndex=1&pageSize=10
    @GET("uc/personInfo/getPersonInfoList")
    Call<JsonForResult> getPersonInfoList(@Header("Authorization") String token, @QueryMap Map<String, String> params);
}
